home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11887 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  766 b 

  1. Path: ee.tamu.edu!ajay
  2. From: Ajay Kumar Gummadi <ajay@ee.tamu.edu>
  3. Newsgroups: comp.unix.programmer,comp.lang.c
  4. Subject: getpwnam() -error checking
  5. Date: Wed, 27 Mar 1996 02:55:56 -0600
  6. Organization: Texas A&M University, College Station, TX
  7. Message-ID: <Pine.SOL.3.91.960327025242.5526B-100000@ee.tamu.edu>
  8. NNTP-Posting-Host: eesun2.tamu.edu
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11.  
  12.  
  13. Hi all,
  14.  
  15.   The function getpwnam() takes the user-id as input argument and returns 
  16. a pointer to a structure, that contains all the user information.
  17.  
  18.   If I give a wrong /non-existent user-id as input argument, how can I 
  19. check the error condition that may arise, before, the system dumps core.
  20.  
  21.   Reply by email will be very helpful.
  22.  
  23.   Thanks.
  24.  
  25.  
  26. bye
  27. ajay 
  28.  
  29.